package org.aceor.mddal.gateway.executor.impl;

import org.aceor.mddal.common.executor.MergeUnit;

import java.util.List;

/**
 * Created by lxue on 16/4/15.
 */
public class DefaultUpdateMergeUnit implements MergeUnit<Integer, Integer> {

    @Override
    public Integer merge(final List<Integer> results) {
        int result = 0;
        for (Integer each : results) {
            result += each;
        }
        return result;
    }

}
